Optimal. Leaf size=45 \[ \frac {(b c-a d) x}{b^2}+\frac {d x^2}{2 b}-\frac {a (b c-a d) \log (a+b x)}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {78}
\begin {gather*} -\frac {a (b c-a d) \log (a+b x)}{b^3}+\frac {x (b c-a d)}{b^2}+\frac {d x^2}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {x (c+d x)}{a+b x} \, dx &=\int \left (\frac {b c-a d}{b^2}+\frac {d x}{b}+\frac {a (-b c+a d)}{b^2 (a+b x)}\right ) \, dx\\ &=\frac {(b c-a d) x}{b^2}+\frac {d x^2}{2 b}-\frac {a (b c-a d) \log (a+b x)}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 41, normalized size = 0.91 \begin {gather*} \frac {b x (2 b c-2 a d+b d x)+2 a (-b c+a d) \log (a+b x)}{2 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 43, normalized size = 0.96
method | result | size |
default | \(-\frac {-\frac {1}{2} b d \,x^{2}+a d x -b c x}{b^{2}}+\frac {a \left (a d -b c \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(43\) |
norman | \(-\frac {\left (a d -b c \right ) x}{b^{2}}+\frac {d \,x^{2}}{2 b}+\frac {a \left (a d -b c \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(44\) |
risch | \(\frac {d \,x^{2}}{2 b}-\frac {a d x}{b^{2}}+\frac {c x}{b}+\frac {a^{2} \ln \left (b x +a \right ) d}{b^{3}}-\frac {a \ln \left (b x +a \right ) c}{b^{2}}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 46, normalized size = 1.02 \begin {gather*} \frac {b d x^{2} + 2 \, {\left (b c - a d\right )} x}{2 \, b^{2}} - \frac {{\left (a b c - a^{2} d\right )} \log \left (b x + a\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.48, size = 47, normalized size = 1.04 \begin {gather*} \frac {b^{2} d x^{2} + 2 \, {\left (b^{2} c - a b d\right )} x - 2 \, {\left (a b c - a^{2} d\right )} \log \left (b x + a\right )}{2 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 37, normalized size = 0.82 \begin {gather*} \frac {a \left (a d - b c\right ) \log {\left (a + b x \right )}}{b^{3}} + x \left (- \frac {a d}{b^{2}} + \frac {c}{b}\right ) + \frac {d x^{2}}{2 b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.89, size = 46, normalized size = 1.02 \begin {gather*} \frac {b d x^{2} + 2 \, b c x - 2 \, a d x}{2 \, b^{2}} - \frac {{\left (a b c - a^{2} d\right )} \log \left ({\left | b x + a \right |}\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 46, normalized size = 1.02 \begin {gather*} x\,\left (\frac {c}{b}-\frac {a\,d}{b^2}\right )+\frac {d\,x^2}{2\,b}+\frac {\ln \left (a+b\,x\right )\,\left (a^2\,d-a\,b\,c\right )}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________